<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生管理系统</title>
    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
    <script type="text/javascript">
        <!--获取地址栏参数-->
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }

        var myurl=GetQueryString("userName");
        $(document).ready(function () {
            if(myurl == 'student' ){
                console.log(myurl);
                $("#according").accordion("remove","老师");
                $("#according").accordion("remove","管理员");
            }else if(myurl == 'teacher'){
                $("#according").accordion("remove","学生");
                $("#according").accordion("remove","管理员");
            }else if(myurl == 'admin'){
                $("#according").accordion("remove","学生");
                $("#according").accordion("remove","老师");
            }else if(myurl == 'superAdmin'){

            }else{
                document.write("请输入正确的用户名。");
            }
        });

    </script>
</head>
<body>
<!--header作为公共模板分离出去-->
<header style="background-color: #F4F4F4; width: 100%; height: 80px;" >
    <div style=" margin-left: 10px;padding: 10px;" >
        <p style="margin: 10px;">学生管理系统</p>
        <hr style="width: 100%; color: #6B9CDE; height: 2px;"/>
    </div>
</header>
<!--将菜单作为公共部分分离出去-->
<aside style=" width: 250px; height: 600px; position: absolute;left: 5px;">

    <div id="according" class="easyui-accordion" style="width:250px;height:400px; margin-top: 70px;margin-left: 25px;background-color: #F4F4F4;">
        <!--学生-->
        <div title="学生" data-options="" style="overflow:auto;padding:10px;">
            <ul>
                <li>
                    <a href="/StudentShowController/showStudentInf"  >个人信息</a>
                </li>
                <li>
                    <a href="/StudentShowKecheng/kechengInf">课程信息</a>
                </li>
                <li>
                    <a href="javascript:void(0)">考试信息</a>
                </li>
            </ul>
        </div>
        <!--老师-->
        <div  title="老师" data-options="" style="padding:10px;">
            <ul>
                <li>
                    <a href="/TeacherShowKechengController/showpage ">查看班级</a>
                </li>
                <li>
                    <a href="/TeacherShowStudentController/showPage">查看学生</a>
                </li>
                <li>
                    <a href="/NBTreeController/showTree" >考试管理</a>
                </li>
            </ul>
        </div>
        <!--管理员-->
        <div title="管理员"  style="padding:10px">
            <ul>
                <li>
                    <a href="/NianjiController/showNianji" target="iframe">年级管理</a>
                </li>
                <li>
                    <a href="/BanjiController/showBanji" target="iframe">班级管理</a>
                </li>
                <li>
                    <a href="/TeacherController/showTeacher" target="iframe" >老师管理</a>
                </li>
                <li>
                    <a href="/StudentController/showStudent" target="iframe" >学生管理</a>
                </li>
                <li>
                    <a href="/KechengController/showKecheng" target="iframe">课程管理</a>
                </li>
                <li>
                    <a href="/BanjiStudentController/showBanjiStudent" target="iframe" >为班级添加学生</a>
                </li>
                <li>
                    <a href="/TeacherKechengController/showTeacherKecheng" target="iframe">老师课程管理</a>
                </li>
                <li>
                        <a href="/StudentKechengController/showStudentKecheng" target="iframe">学生课程管理</a>
                </li>
                <li>
                    <a href="/TeacherBanjiController/showTeacherBanji" target="iframe">老师班级管理</a>
                </li>
                <li>
                    <a href="/NianjiBanjiController/showNianjiBanji" target="iframe">年级班级管理</a>
                </li>
                <li>
                    <a href="/KaostypeKechengController/showKaostypeKecheng" target="iframe">考试类型管理</a>
                </li>

            </ul>
        </div>
    </div>
</aside>
<section style="background-color: #F4F4F4;  height:500px; width: 80%; position: relative;left: 300px;top: 30px;">
    <iframe name="iframe" width=100% height=500px frameborder=0 scrolling=auto src="https://cn.bing.com/"></iframe>
</section>
<!--公共的页脚-->
<footer style="background: #F4F4F4;  position:relative ; top: 50px; height: 100px; text-align: center; " >
    <hr />
    <p >学生管理信息系统</p>
</footer>
</body>
</html>